package cn.rxls.community.enums;

import lombok.AllArgsConstructor;

/**
 * 响应状态码
 */
@AllArgsConstructor
public enum ResultEnum {
    ERROR_COMPLAINT_FEEDBACK_TYPE(20001,"不存在此类型"),
    ERROR_BOOKING_REPEAT(10001,"一天最多只能有2个预约"),
    ERROR_CONTRACTUAL_CONFIRM_TYPE(9001,"合同确认类型错误"),
    ERROR_CONTRACTUAL_ID(8000,"非法合同"),
    ERROR_CONTRACTUAL(8000,"合同异常"),
    ERROR_BILL(7005,"账单不存在"),
    ERROR_BILL_PRICE(7004,"账单金额异常"),
    ERROR_JSON_BILL(7003,"账单异常"),
    ERROR_TYPE_BILL(7002,"账单类型不存在"),
    ERROR_ADD_BILL(7001,"创建账单失败"),
    ERROR_GOODS_INVENTORY(6003,"库存不足"),
    ERROR_GOODS(6001,"商品不存在"),
    ERROR_ORDERS_GOODS(6002,"创建商品订单失败"),
    ERROR_ORDERS_MAINTENANCE(5001,"创建维修订单失败"),
    ERROR_HOUSE_USER(4001,"您无权操作该房间"),
    ERROR_UPLOAD_IMG_SIZE(3004,"上传图片限制5M以内"),
    ERROR_UPLOAD_IMG_TYPE(3003,"上传图片格式错误"),
    ERROR_UPLOAD_IMG(3002,"上传图片失败"),
    ERROR_UPLOAD_AVATAR(3001,"上传头像失败"),
    ERROR_QUERY(2001,"参数校验失败"),
    ERROR_LOGIN_NOT(1001,"请先登录"),
    ERROR_LOGIN(1001,"登录失效"),
    ERROR_ENROLL(1003, "注册失败"),
    ERROR_AUTHORIZED(1004, "授权失败"),
    SUCCESS(200, "成功"),
    ERROR(400, "失败"),
    ERROR_EXCEPTION(404,"系统繁忙");


    //响应码
    public final Integer code;
    //响应信息
    public final String msg;


}
